package com.qyer.commons.service.conf;

import io.dropwizard.Configuration;
import org.hibernate.validator.constraints.NotEmpty;

import javax.validation.constraints.Min;

/**
 * User: Z J Wu Date: 2016/03/06 Time: 01:16 Package: com.qyer.commons.service.conf
 */
public class CommonsConf extends Configuration {

  @NotEmpty
  private String serverName;
  @NotEmpty
  private String namespace;

  @Min(60000)
  // 地理信息用一个就够了
  private int reloadIntervalQyerPlace;

  @NotEmpty
  private String testContinentIdString;
  @NotEmpty
  private String testCountryIdString;

  public String getServerName() {
    return serverName;
  }

  public void setServerName(String serverName) {
    this.serverName = serverName;
  }

  public String getNamespace() {
    return namespace;
  }

  public void setNamespace(String namespace) {
    this.namespace = namespace;
  }

  public int getReloadIntervalQyerPlace() {
    return reloadIntervalQyerPlace;
  }

  public void setReloadIntervalQyerPlace(int reloadIntervalQyerPlace) {
    this.reloadIntervalQyerPlace = reloadIntervalQyerPlace;
  }

  public String getTestContinentIdString() {
    return testContinentIdString;
  }

  public void setTestContinentIdString(String testContinentIdString) {
    this.testContinentIdString = testContinentIdString;
  }

  public String getTestCountryIdString() {
    return testCountryIdString;
  }

  public void setTestCountryIdString(String testCountryIdString) {
    this.testCountryIdString = testCountryIdString;
  }
}
